﻿@{
    ViewBag.Title = "UserDirectory";
}
<section role="main" id="content">
    <header>
        <h1 id="admin-page-heading">User Directories</h1>
        <div class="aui-dd-parent upm-admin-headers upm-notifications-jira dd-allocated loaded" id="upm-notifications">
			<a href="#" class="aui-dd-trigger" id="upm-notifications-trigger" title="Plugin Notifications">
				<span id="upm-notifications-icon"></span>
				<span id="upm-notifications-count">0</span>
			</a>
			<div class="upm-notifications-dropdown aui-dropdown hidden" id="upm-notifications-dropdown">
				<h3>Plugin Notifications</h3>
				<p id="upm-no-notifications">There are no plugins requiring your attention at this time.</p>
			</div>
		</div>
	</header>
    <div class="content-container">
        <div class="content-body aui-panel">                  
			<div class="list-directories" id="embcwd">
				<form class="aui" action="">
					<div class="page-header">
						<h3>User Directories                         
							<a target="_help" href="#" title="Get online help about Configuring User Directories" class="aui-icon icon-help"></a>
						</h3>
						<p class="description">The table below shows the user directories currently configured for JIRA.</p>
						<p class="description">The order of the directories is the order in which they will be searched for users and groups. Changes to users and groups will be made in the first directory where JIRA has permission to make changes.  It is recommended that each user exist only in a single directory.</p>
			        </div>
					<table class="aui" id="directory-list">
						<thead>
							<tr>
								<th class="id-header">ID</th>
								<th class="name-header">Directory Name</th>
								<th class="type-header">Type</th>
								<th class="order-header">Order</th>
								<th class="operations-header">Operations</th>
							</tr>
						</thead>
						<tbody>
							<tr class=" " id="directory-1">
								<td class="id-column">1</td>
								<td class="name-column">JIRA Internal Directory</td>
								<td class="type-column">Internal</td>
								<td class="order-column icon-container">
									<span class="icon icon-move-up-disabled">Move Up</span>
									<span class="icon icon-move-down-disabled">Move Down</span>
								</td>
								<td class="operations-column">
									<p class="operations">
										<a href="#" class="directory-operation edit">Edit</a>
									</p>
								</td>
							</tr>
						</tbody>
					</table>
				</form>       
				<button id="new-directory">Add Directory</button>
				<form action="" method="POST" class="hidden aui" id="new-directory-form">
					<p>
						<label for="new-directory-type">Directory Type:</label>
						<select name="newDirectoryType" id="new-directory-type">
							<option value="ACTIVE_DIRECTORY">Microsoft Active Directory</option>
							<option value="LDAP">LDAP</option>
							<option value="DELEGATING_LDAP">Internal with LDAP Authentication</option>
							<option value="CROWD">Atlassian Crowd</option>
							<option value="JIRA">Atlassian JIRA</option>
						</select>
					</p>
					<p><input type="submit" value="Next" name="next"></p>
				</form>
				<h3>Additional Configuration &amp; Troubleshooting</h3>
				<ul>
					<li>
						<a href="#">Directory Configuration Summary</a>
					</li>
				</ul>
			</div>
		</div>
     </div>
</section>